<template>
    <div class="dash-board">
        <div class="dash-board-item">
            <div class="dash-board-panel">
                <img class="panel-bg" src="@/assets/images/anbao/yibiaopan.png" alt="">
                <span class="panel-value">0</span>
                <span class="panel-value">2万</span>
                <span class="panel-value">4万</span>
                <span class="panel-value">6万</span>
                <span class="panel-value">8万</span>
                <span class="panel-value">10万</span>
                <img class="panel-pointer panel-pointer1" src="@/assets/images/anbao/pointer.png" alt="">
            </div>
            <span class="dash-board-num">{{data.accumulateVisitsTimes}}</span>
            <span class="dash-board-title">累积访问次数</span>
        </div>
        <div class="dash-board-item">
            <div class="dash-board-panel">
                <img class="panel-bg" src="@/assets/images/anbao/yibiaopan.png" alt="">
                <span class="panel-value">0</span>
                <span class="panel-value">20</span>
                <span class="panel-value">40</span>
                <span class="panel-value">60</span>
                <span class="panel-value">80</span>
                <span class="panel-value">100</span>
                <img class="panel-pointer panel-pointer2" src="@/assets/images/anbao/pointer.png" alt="">
            </div>
            <span class="dash-board-num">{{data.todayVisitsTimes}}</span>
            <span class="dash-board-title">今日访问次数</span>
        </div>
        <div class="dash-board-item">
            <div class="dash-board-panel">
                <img class="panel-bg" src="@/assets/images/anbao/yibiaopan.png" alt="">
                <span class="panel-value">0</span>
                <span class="panel-value">2000</span>
                <span class="panel-value">4000</span>
                <span class="panel-value">6000</span>
                <span class="panel-value">8000</span>
                <span class="panel-value">10000</span>
                <img class="panel-pointer panel-pointer3" src="@/assets/images/anbao/pointer.png" alt="">
            </div>
            <span class="dash-board-num">{{data.userLogonNum}}</span>
            <span class="dash-board-title">用户注册数量</span>
        </div>
        <div class="dash-board-item">
            <div class="dash-board-panel">
                <img class="panel-bg" src="@/assets/images/anbao/yibiaopan.png" alt="">
                <span class="panel-value">0</span>
                <span class="panel-value">20</span>
                <span class="panel-value">40</span>
                <span class="panel-value">60</span>
                <span class="panel-value">80</span>
                <span class="panel-value">100</span>
                <img class="panel-pointer panel-pointer4" src="@/assets/images/anbao/pointer.png" alt="">
            </div>
            <span class="dash-board-num">{{data.timeOnlineNum}}</span>
            <span class="dash-board-title">用户在线数量</span>
        </div>
    </div>
</template>
<script setup>
const props = defineProps({
    data: {
        default: {},
        type: Object,
    }
})
</script>
<style lang='scss' scoped>
.dash-board{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 25px;
    &-item{
        width: 140px;
        text-align: center;
        font-size: 14px;
        font-family: SourceHanSansCN-Regular, SourceHanSansCN-Regular;
        color: #FFFFFF;
        &:nth-child(2n){
            margin-left: 30px;
        }
        margin-left: 5px;
        margin-bottom: 10px;
        span{
            display: block;
        }
    }
    &-num{
        color: #46FFFF;
        font-size: 18px;
        margin-top: 8px;
    }
    &-panel{
        width: 140px;
        height: 68px;
        position: relative;
        .panel-bg{
            display: block;
            width: 110px;
            height: 56px;
            margin: 0 auto;
            position: absolute;
            bottom: 0;
            left: 15px;
        }
        .panel-value{
            position: absolute;
            bottom: 0;
            font-size: 10px;
            color: #fff;
            font-family: Helvetica Neue LT Pro-55 Roman, Helvetica Neue LT Pro;
            &:nth-child(2){
                left: 8px;
                bottom: -2px;
            }
            &:nth-child(3){
                left: 8px;
                bottom: 32px;
            }
            &:nth-child(4){
                left: 40px;
                bottom: 53px;
            }
            &:nth-child(5){
                right: 40px;
                bottom: 53px;
            }
            &:nth-child(6){
                right: 8px;
                bottom: 32px;
            }
            &:nth-child(7){
                right: -8px;
            }
        }
        .panel-pointer{
            position: absolute;
            left: 64px;
            bottom: -6px;
            display: block;
            width: 8px;
            height: 31px;
        }
        .panel-pointer1{
            left: 55px;
            bottom: -12px;
            transform: rotate(-75deg);
        }
        .panel-pointer2{
            transform: rotate(45deg);
            transform-origin: 5px 28px;
        }
        .panel-pointer3{
            transform: rotate(-75deg);
            transform-origin: 5px 24px;
        }
        .panel-pointer4{
            transform: rotate(-32deg);
            transform-origin: 5px 28px;
        }
    }
}
</style>